package surname.protocol;

import java.util.List;
import java.util.Map;


/**
 * List surname request class. This object can be sent empty to the server and
 * received filled by the client with the list of names and surnames.
 * This class is serializable and can be sent through the network.
 *
 * @author Thomas Di'Meco / Laura Martellotto - Gwenn Aubert / Matthieu Maugard - SI4 Groupe 1
 */
public class ListSurnameRequest extends AbstractRequest
{
    private static final long serialVersionUID = 1L;

    private Map<String, List<String>> list;

    /**
     * Create an empty list surname request
     */
    public ListSurnameRequest ()
    {
        super();
    }

    /**
     * Create a list surname request with a list of names and surnames
     * @param list The list of names and surnames
     */
    public ListSurnameRequest (Map<String, List<String>> list)
    {
        super();
        this.list = list;
    }

    /**
     * @return The list of names and surnames
     */
    public Map<String, List<String>> getList ()
    {
        return list;
    }

    /**
     * @param list The new list of names and surnames
     */
    public void setList (Map<String, List<String>> list)
    {
        this.list = list;
    }
}
